package com.simba.server.webservice;

import org.apache.http.client.methods.HttpEntityEnclosingRequestBase;
import org.jboss.netty.handler.codec.http.HttpMethod;

import java.net.URI;

/**
 * @author create by kavin
 * @date 2021/5/26 10:00
 */
public class HttpGetWithEntity extends HttpEntityEnclosingRequestBase {
    public HttpGetWithEntity(URI url) {
        super.setURI(url);
    }

    public HttpGetWithEntity(String url) {
        super.setURI(URI.create(url));
    }
    @Override
    public String getMethod() {
        return HttpMethod.GET.getName();
    }
}
